home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKitArchive.mbox / mbox / 000200_misckit-reques…aska.et.byu.edu_Sun May 29 18:27:40 1994.msg < prev    next >
Internet Message Format  |  1994-10-30  |  2KB

  1. Return-Path: <misckit-request@alaska.et.byu.edu>
  2. Received: from alaska.et.byu.edu by darth.byu.edu (NX5.67d/NX3.0M)
  3.     id AA09929; Sun, 29 May 94 18:27:33 -0600
  4. Received: from yvax1.byu.edu by alaska.et.byu.edu; Sun, 29 May 1994 16:53:48 -0600
  5. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-8 #4169)
  6.  id <01HCX2W9875C9GV5T6@yvax.byu.edu>; Sun, 29 May 1994 16:52:54 MDT
  7. Received: from alaska.et.byu.edu by yvax.byu.edu (PMDF V4.3-8 #4169)
  8.  id <01HCX2W34E9C019KLN@yvax.byu.edu>; Sun, 29 May 1994 16:52:47 -0600 (MDT)
  9. Received: from yvax1.byu.edu by alaska.et.byu.edu; Sun,
  10.  29 May 1994 16:52:50 -0600
  11. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-8 #4169)
  12.  id <01HCX2V1OE0W9GV5T6@yvax.byu.edu>; Sun, 29 May 1994 16:51:55 MDT
  13. Received: from farli.otago.ac.nz by yvax.byu.edu (PMDF V4.3-8 #4169)
  14.  id <01HCX2U64X1S02LRBR@yvax.byu.edu>; Sun, 29 May 1994 16:51:50 -0600 (MDT)
  15. Received: by farli.otago.ac.nz (NX5.67e/NX3.0M) id AA05681; Mon,
  16.  30 May 94 10:49:53 +1200
  17. Received: by NeXT.Mailer (1.100)
  18. Received: by NeXT Mailer (1.100)
  19. Date: Mon, 30 May 1994 10:49:53 +1200
  20. From: Alastair Thomson <alastair@farli.otago.ac.nz>
  21. Subject: Re: Requesting input for file searching object design
  22. To: misckit@byu.edu
  23. Reply-To: alastair@farli.otago.ac.nz
  24. Message-Id: <9405292249.AA05681@farli.otago.ac.nz>
  25. Content-Transfer-Encoding: 7BIT
  26.  
  27. Hi everyone,
  28. I agree with Bruce's post regarding a general File object. I implemented one again using a subclass of String. I then implemented a DirectoryTree object as a subclass of list. The list contains either File objects or other DirectoryTree objects. This retains the tree structure of the file system. The methods implemeted in DirectoryTree are the same as in File, so they appear much the same. I implemented methods for searching the tree for individual Files, or for groups using regular expressions or shell type wild cards.
  29.  
  30. I found this very! flexible, and it has appeared in many places in apps I have written.
  31.  
  32. Alastair
  33.  
  34. --
  35. Alastair Thomson,             | Phone +64-3-479-8347
  36. Computer Science Department,  | Fax   +64-3-479-8529
  37. University of Otago,          |
  38. Dunedin,                      | alastair@Black_Albatross.otago.ac.nz
  39. New Zealand                   | NeXTmail Welcome